/********************************************************************

Defines some common exceptions.

Write Date: 2011/03/23
Author: Deng Nianchen
>>>> The file contains following classes:
>>>> OutOfRangeException
	
*********************************************************************/
#ifndef COMMON_EXCEPTION_HPP
#define COMMON_EXCEPTION_HPP
#include "OOPException.hpp"



_OOPUTILS_BEGIN




/**************************************************************************************************
 * <summary>  Exception for signalling out of range errors.  </summary>
 *
 * <remarks>  Deng Nianchen, 2011/3/23. </remarks>
 **************************************************************************************************/

class OutOfRangeException : public OOPException
{

public:

  virtual wstring getReason ()
  {
    return L"The index is out of range.";
  }

};


_OOPUTILS_END


#endif